<?php

namespace app\common\service;


class ApiService
{
    protected string $error = '';

    /**
     * 获取错误信息
     * @return string
     */
    public function getError(): string
    {
        return $this->error;
    }

    /**
     * @param $error string 错误信息
     * @return void
     */
    public function setError(string $error): void
    {
        $this->error = $error;
    }
}